package com.yand.spring.DesignPrinciples.composite_AggregateReusePrinciple.beforeImprovement;

public class ProductDao {


    private DBConnection dbConnection;

    public void setDbConnection(DBConnection dbConnection){

        this.dbConnection = dbConnection;

    }


    public void addProduct(){

       String conn = dbConnection.getConnection();

       System.out.println("使用"+conn+"增加产品");
    }


}
